package com.gtw.modules.sys.service.impl;

import com.gtw.modules.dao.TbAnnouncementDao;
import com.gtw.modules.entity.TbAnnouncement;
import com.gtw.modules.sys.service.SysTbAnnouncementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/** 公告接口实现类
 * Created by wuye on 2018/2/2.
 */
@Service
public class SysTbAnnouncementServiceImpl implements SysTbAnnouncementService {

    @Autowired
    private TbAnnouncementDao tbAnnouncementDao;

    @Override
    public TbAnnouncement queryObject(Integer id){
        return tbAnnouncementDao.queryObject(id);
    }

    @Override
    public List<TbAnnouncement> queryList(Map<String, Object> map){
        return tbAnnouncementDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map){
        return tbAnnouncementDao.queryTotal(map);
    }

    @Override
    public void save(TbAnnouncement announcement){
        tbAnnouncementDao.save(announcement);
    }

    @Override
    public void update(TbAnnouncement announcement){
        tbAnnouncementDao.update(announcement);
    }

    @Override
    public void delete(Integer id){
        tbAnnouncementDao.delete(id);
    }

    @Override
    public void deleteBatch(Integer[] ids){
        tbAnnouncementDao.deleteBatch(ids);
    }
}
